Tabled Evaluation with Delaying for General Logic Programs

نویسندگان

  • M H Van Emden
  • David B Kemp
  • Peter J Stuckey
  • Divesh Srivastava
  • D B Kemp
  • R W Topor
چکیده

The semantics of predicate logic as a programming language. Every logic program has a natural stratiication and an iterated least xed point model. Magic sets and bottom-up evaluation of well-founded models. Query restricted bottom-up evaluation of normal logic programs. Completeness of a top-down query evaluation procedure for stratiied databases. 42 LPM(PP(S j) J)(B) for some j < i and for every B A 2 HB Prog , M(B A) = LPM(PP(S j) J)(B A) for some j < i such that A is a subgoal of S j. By inductive hypothesis, every S j (j < i) is a symmetric system and so every LPM(PP(S j) J) is a symmetric interpretation. Thus M is well deened and is also a symmetric interpretation. Furthermore it can be veriied that M = LPM(PProg J). The program P(S i) can be obtained by deleting rules from Prog. Sometimes a deleted rule is replaced by another rule, but there is no innnite chain of the replacement relationship. Let (A :) be an arbitrary pair in S i. Let G A 1 and G A 2 be arbitrary rules in Prog, where for some ordinals k 1 and k 2 , G 1 is the X-rule of a subgoal A corresponding to k 1 and G 2 is the X-rule of a subgoal A corresponding to k 2 in S i. G A 1 is said to be a parent of G A 2 , denoted by G A 1 > G A 2 , if (k 2) = G 2 hk 1 i or (k 2) = G 2 hk 1 ; Hi for some atom H. There is no innnite descending chain of the relation > since G 2 has either fewer literals that are not delayed or fewer literals that are delayed. The number of literals in G 1 and G 2 is bounded by the maximum number of literals in a rule body in a nite program P. Every rule in Prog that is not in P(S i) corresponds to an X-rule of a subgoal that is disposed when S j+1 is derived from S j for some j + 1 < i. By inductive hypothesis, LPM(PP(S j+1)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Incremental Evaluation of Tabled Logic Programs

Tabling has emerged as an important evaluation technique in logic programming. Currently, changes to a program (due to addition/deletion of rules/facts) after query evaluation compromise the completeness and soundness of the answers in the tables. This paper presents incremental algorithms for maintaining the freshness of tables upon addition or deletion of facts. Our algorithms improve on exis...

متن کامل

Tabdual: a Tabled Abduction System for Logic Programs

Abduction has been on the back burner in logic programming, as abduction can be too difficult to implement, and costly to perform, in particular if abductive solutions are not tabled. On the other hand, current Prolog systems, with their tabling mechanisms, are mature enough to facilitate the introduction of tabling abductive solutions (tabled abduction) into them. Our contributions are as foll...

متن کامل

Parallelizing Tabled Evaluations

SLG is a table-oriented resolution method that extends SLD evaluation in two ways. It computes, with polynomial data complexity, the well-founded model for logic programs with negation and it terminates for programs with the bounded-term-size property. Furthermore SLG has an eecient sequential implementation for left-to-right modularly stratiied programs in the SLG-WAM of XSB 13]. This paper ad...

متن کامل

Tabled Abduction in Logic Programs

Abduction has been on the back burner in logic programming, as abduction can be too difficult to implement, and costly to perform, in particular if abductive solutions are not tabled for reuse. On the other hand, current Prolog systems, with their tabling mechanisms, are mature enough to facilitate the specific introduction of tabling abductive solutions (tabled abduction) into them. We concept...

متن کامل

Parallelizing Tabled Evaluations (Extended Abstract)

SLG is a table-oriented resolution method that extends SLD evaluation in two ways. It computes the well-founded model for logic programs with negation with polynomial data complexity, and it terminates for programs with the bounded-term-size property. Furthermore SLG has an ef-cient sequential implementation for modularly stratiied programs in the SLG-WAM of XSB. This paper addresses general is...

متن کامل

Incremental Evaluation of Tabled Prolog: Beyond Pure Logic Programs

Tabling, or memoization, enables incremental evaluation of logic programs. When the rules or facts of a program change, we need to recompute only those results that are affected by the changes. The current algorithms for incrementally maintaining memo tables treat insertion of facts/rules differently from their deletion. Hence these techniques cannot be directly applied for incremental evaluati...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996